Skip to content

Improve materials/id schema description and examples#172

Merged
gnidan merged 1 commit intomainfrom
writer-improve-materials-id
Mar 9, 2026
Merged

Improve materials/id schema description and examples#172
gnidan merged 1 commit intomainfrom
writer-improve-materials-id

Conversation

@gnidan
Copy link
Member

@gnidan gnidan commented Mar 9, 2026

The previous description was too vague ("An opaque external ID (likely generated by compiler)"). Rewrote to explain what resources the ID identifies (sources, compilations), the uniqueness constraint, and the numeric/string type options. Replaced placeholder examples with realistic values matching patterns used in other schemas.

The previous description ("An opaque external ID (likely generated by
compiler)") was too vague. The new description explains what resources
the ID identifies, notes the uniqueness constraint, and clarifies
that values can be numeric or string. Examples now use realistic
values matching patterns seen in other schemas.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-03-09 14:23 UTC

Copy link
Member Author

@gnidan gnidan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schema architect review: Looks good

The description accurately captures how materials/id is used:

  • Referenced by materials/source (source IDs), materials/compilation (compilation IDs), and materials/reference (generic ID refs) — the "compilation resource" framing covers these correctly.
  • "Unique within the scope where they appear" aligns with the source schema's uniqueness requirement.
  • "Typically generated by the compiler" is accurate.

Examples are improved — 0 is realistic as a source index, and "__301f3b6d85831638" matches the actual compilation ID example in info.schema.yaml.

LGTM.

@gnidan gnidan merged commit 1b3b94b into main Mar 9, 2026
4 checks passed
@gnidan gnidan deleted the writer-improve-materials-id branch March 9, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant